home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
049b.dms
/
049b.adf
/
andrew_smith_source
/
Trianglefill.AMOS
/
Trianglefill.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
514b
|
32 lines
' Triangle fill
' Anchor first point
Repeat
XS=X Screen(X Mouse)
YS=Y Screen(Y Mouse)
Until Mouse Click=1
' Anchor second point
Gr Writing 2
Repeat
XE=X Screen(X Mouse)
YE=Y Screen(Y Mouse)
Draw XS,YS To XE,YE
Wait Vbl
Draw XS,YS To XE,YE
Until Mouse Click=1
Repeat
X=X Screen(X Mouse)
Y=Y Screen(Y Mouse)
Polygon XS,YS To XE,YE To X,Y To XS,YS
Wait Vbl
Polygon XS,YS To XE,YE To X,Y To XS,YS
Until Mouse Click=1
Gr Writing 0
Polygon XS,YS To XE,YE To X,Y To XS,YS